package org.springblade.modules.repair.dto.statistical;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.Date;
import java.util.List;

/**
 * @Description
 * @Author ysq
 * @Date 2022/8/24
 **/
@Data
public class WorkCalendarDTO {

	@NotEmpty(message = "用户列表不能为空")
	@ApiModelProperty("用户列表")
	private List<Long> userIds;

	@NotBlank(message = "月份不能为空")
	@ApiModelProperty(value = "月份(yyyy-MM)")
	private String yearMonth;

	@ApiModelProperty(value = "是否显示休息日")
	private Boolean isShowHoliday;

	private Date beginDate;

	private Date endDate;

	public Boolean getShowHoliday() {
		if (this.isShowHoliday == null) {
			this.isShowHoliday = false;
		}
		return isShowHoliday;
	}

}
